package designpattern.decorate.coffee;


/*
    咖啡:被装饰者
 */
public abstract class Coffee {
    private String dec;  //描述
    private float price; //价格

    public String getDec() {
        return dec;
    }

    public void setDec(String dec) {
        this.dec = dec;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    //计算费用
    public float cost(){
        return price;
    }
}
